Trò chơi đua xe động vật trong UNITY Engine
114.736 lượt xem;
- InterpolationBounceIn.cs
- Interpolations /
- Bapk /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class InterpolationBounceIn : InterpolationBounceOut {
5 public InterpolationBounceIn(float[] widths, float[] heights) : base(widths, heights)
6 { }
7
8 public InterpolationBounceIn(int bounces) : base(bounces) { }
9
10 public override float apply(float a)
11 {
12 return 1 - base.apply(1 - a);
13 }
14 }
2 using System.Collections;
3
4 public class InterpolationBounceIn : InterpolationBounceOut {
5 public InterpolationBounceIn(float[] widths, float[] heights) : base(widths, heights)
6 { }
7
8 public InterpolationBounceIn(int bounces) : base(bounces) { }
9
10 public override float apply(float a)
11 {
12 return 1 - base.apply(1 - a);
13 }
14 }